import request from './config'

export const getBanner = () => {
  return request.get(
    '/banner', {
      type: 2
    }
  )
}

export const getRanking = idx => {
  return request.get('/top/list', {
    idx
  })
}

export const getSongMenu = (cat = '全部', limit = 6, offset = 0 ) => {
  return request.get('/top/playlist', {
    cat,
    limit,
    offset
  })
}

